<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/resources/templates/template_site.xhtml">
        <ui:define name="title">
            <h:outputText value=""></h:outputText>
        </ui:define>
        <ui:define name="content">
             
                <p:panel header="#{bundle.EditCommandefourTitle}">
                    <h:panelGroup id="messagePanel" layout="block">
                        <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                    </h:panelGroup>

                    <h:panelGrid columns="2">
                        <h:outputLabel value="#{bundle.EditCommandefourLabel_idcomfour}" for="idcomfour" />
                        <p:inputText id="idcomfour" value="#{commandefourController.selected.idcomfour}" title="#{bundle.EditCommandefourTitle_idcomfour}" required="true" requiredMessage="#{bundle.EditCommandefourRequiredMessage_idcomfour}"/>
                        <h:outputLabel value="#{bundle.EditCommandefourLabel_datecomfour}" for="datecomfour" />
                        <p:calendar id="datecomfour" value="#{commandefourController.selected.datecomfour}" title="#{bundle.EditCommandefourTitle_datecomfour}" required="true" requiredMessage="#{bundle.EditCommandefourRequiredMessage_datecomfour}">
                        </p:calendar>
                        <h:outputLabel value="#{bundle.EditCommandefourLabel_iditem}" for="iditem" />
                        <p:selectOneMenu id="iditem" value="#{commandefourController.selected.iditem}" title="#{bundle.EditCommandefourTitle_iditem}" required="true" requiredMessage="#{bundle.EditCommandefourRequiredMessage_iditem}">
                            <f:selectItems value="#{itemController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                        <h:outputLabel value="#{bundle.EditCommandefourLabel_idfour}" for="idfour" />
                        <p:selectOneMenu id="idfour" value="#{commandefourController.selected.idfour}" title="#{bundle.EditCommandefourTitle_idfour}" required="true" requiredMessage="#{bundle.EditCommandefourRequiredMessage_idfour}">
                            <f:selectItems value="#{fournisseurController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                    </h:panelGrid>
                    <h:commandLink action="#{commandefourController.update}" value="#{bundle.EditCommandefourSaveLink}"/>
                    <br />
                    <br />
                    <h:commandLink action="View" value="#{bundle.EditCommandefourViewLink}" immediate="true"/>
                    <br />
                    <h:commandLink action="#{commandefourController.prepareList}" value="#{bundle.EditCommandefourShowAllLink}" immediate="true"/>
                    <br />
                    <br />
                    <h:commandLink value="#{bundle.EditCommandefourIndexLink}" action="/pages/index" immediate="true" />
                </p:panel>
             
        </ui:define>
    </ui:composition>

</html>
